import { Base } from '../../utils/base.js';

class Follow extends Base {
  //构造方法-调用调用父级方法-》super()
  constructor() {
    super();
  }
  //获取关注信息
  getFollowData(id,callback) {
    var that = this;
    // console.log(wx.getStorageSync('token'));
    var param = {
      url: 'Follow/'+id,
      header: {
        'content-type': 'application/json',
       
      },
      sCallback: function (data) {
        callback && callback(data);
      }

    };
    this.request(param);

  };

  //点击关注
  setFollowData(id,callback) {
    var that = this;
    var param = {
      url: 'FollowInsert/'+id,
      header: {
        'content-type': 'application/json',
       
      },
      sCallback: function (data) {
        callback && callback(data);
      }

    };
    this.request(param);

  };

  //点击取消关注
  delFollowData(id,callback) {
    var that = this;
    var param = {
      url: 'FollowDel/'+id,
      header: {
        'content-type': 'application/json',
        
      },
      sCallback: function (data) {
        callback && callback(data);
      }

    };
    this.request(param);

  };
 //预约信息查询
 catFollowData(callback) {
  var that = this;
  var param = {
    url: 'FollowCat',
    header: {
      'content-type': 'application/json',
      
    },
    sCallback: function (data) {
      callback && callback(data);
    }

  };
  this.request(param);

};



}

export { Follow }